import { Resolver, Query, Args } from '@nestjs/graphql';
import { ClientService } from './client.service';
import { PageQuery } from '@/common/interfaces/Pagination';

@Resolver()
export class ClientReolver {
  constructor(private readonly clientService: ClientService) {}

  @Query()
  async clients(@Args() params: PageQuery) {
    return this.clientService.clientsPageQuery(params);
  }
}
